//
//  MBNotification+MZero.h
//  mZero-iOS
//
//  Created by catch on 16/7/19.
//  Copyright © 2016年 Shenzhen Maker Works Technology Co., Ltd. All rights reserved.
//

#import "MBNotification.h"

#pragma mark -- Widget

//通知更新Widget属性
static NSString *const MBN_UpdateWidgetProperty = @"mbn_updateWidgetProperty";

//通知打开Widget预览视图
static NSString *const MBN_OpenWidgetPreviewPanel = @"mbn_openWidgetPreviewPanel";

//通知关闭Widget预览视图
static NSString *const MBN_CloseWidgetPreviewPanel = @"mbn_closeWidgetPreviewPanel";

//当Widget的值改变时,通知(blockly等)改变的值
static NSString *const MBN_WidgetValueChanged = @"mbn_widgetValueChanged";

//当Widget正在被创建时
static NSString *const MBN_WidgetBeingCreated = @"mbn_widgetBeingCreated";

//当Widget找到自己的位置，被填充数据，真正被创建时
static NSString *const MBN_WidgetDataBeingCreated = @"mbn_widgetDataBeingCreated";

//当Widget创建结束时
static NSString *const MBN_WidgetCreationEnded = @"mbn_widgetCreationEnded";

//当删除Widget时
static NSString *const MBN_DeleteWidget = @"mbn_deleteWidget";

#pragma mark -- Project

//加载项目
static NSString *const MBN_CPBrowserLoadProject = @"mbn_cpBrowserLoadProject";

//项目重命名
static NSString *const MBN_CPBrowserRenameProject = @"mbn_cpBrowserRenameProject";

//项目删除
static NSString *const MBN_CPBrowserDeleteProject = @"mbn_CPBrowserDeleteProject";

//重新刷新项目列表
static NSString *const MBN_CPBrowserReloadProjectList = @"mbn_cpBrowserReloadProjectList";


#pragma mark -- Others

//通知跳转到BlocklyWebView
static NSString *const MBN_ToggleBlocklyWebview = @"mbn_toggleBlocklyWebview";

//当控制面板的状态（播放、编辑）改变时
static NSString *const MBN_ControlPanelModeChanged = @"mbn_controlPanelModeChanged";

//当保存项目前
static NSString *const MBN_BeforeProjectSaving = @"mbn_beforeProjectSaving";

//当选择的板类型刷新时
static NSString *const MBN_SelectedBoardTypeRefreshed = @"mbn_selectedBoardTypeRefreshed";

//当选择的模式改变时
static NSString *const MBN_RobotFormRefreshed = @"mbn_robotFormRefreshed";

//用户点击了产品选择按钮
static NSString *const MBN_ProjectCategorySelected = @"mbn_projectCategorySelected";

//连接的板类型换了
static NSString *const MBN_BoardTypeRefreshed = @"mbn_boardTypeRefreshed";

//蓝牙断开连接
static NSString *const MBN_MCUDisconnected = @"mbn_mcuDisconnected";

//隐藏所有的“删除”、“编辑”次级菜单
static NSString *const MBN_CPBrowserResetContextMenu = @"mbn_CPBrowserResetContextMenu";


@interface MBNotification (MZero)

@end